<extend name="Layout/ins_page" />
<block name="content">
	<eq name="vo.doc_type" value="1">
		{:W('PageHeader/simple',array('name'=>"收入详细内容"))}
	</eq>
	<eq name="vo.doc_type" value="2">
		{:W('PageHeader/simple',array('name'=>"支出详细内容"))}
	</eq>
	<eq name="vo.doc_type" value="3">
		{:W('PageHeader/simple',array('name'=>"转账详细内容"))}
	</eq>
	<div class="oprator-panel">
		<a onclick="go_return_url();" class="btn">返回</a>
		<if condition="$auth['admin']">
			<a id="btn_del" class="btn btn-del">删除</a>
		</if>
		<div class="split"></div>
		<a onclick="winprint()" class="btn  hidden-xs">打印</a>
		<if condition="$auth['write']">
			<a onclick="edit();" class="btn">修改</a>
		</if>
	</div>
	<eq name="vo.doc_type" value="1">
		<div class="sub-frame gray">
			<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   >
				<div class="frame">
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="doc_no">单据编号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.doc_no}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="end_date" >日期：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.input_date}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="account_id">客户名称：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.partner}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" >收入项目：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.type}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="account_id">交易帐号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.account_name}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" >账户余额：</label>
							<div class="layui-input-block">
								<input class="layui-input" id="balance" type="text" readonly="readonly" >
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="payment">金额：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.income}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="actor_user_name">经办人：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.actor_name}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-1">
						<div class="layui-form-item">
							<label class="layui-form-label" for="remark">摘要：</label>
							<div class="layui-input-block">
								<div class="content-wrap">
									{$vo.remark}
								</div>
							</div>
						</div>
					</div>
					<div class="bit-1">
						<div class="layui-form-item">
							<label class="layui-form-label" for="name">附件：</label>
							<div class="layui-input-block">
								{:W('FileUpload/view',array('mode'=>'add'))}
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</eq>
	<eq name="vo.doc_type" value="2">
		<div class="sub-frame gray">
			<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   >
				<div class="frame">
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="doc_no">单据编号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.doc_no}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="end_date" >日期：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.input_date}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="account_id">供应商名称：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.partner}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" >支出项目：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.type}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="account_id">交易帐号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.account_name}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" >账户余额：</label>
							<div class="layui-input-block">
								<input class="layui-input" id="balance" type="text" readonly="readonly" >
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="payment">金额：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.payment}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="actor_user_name">经办人：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.actor_user_name}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-1">
						<div class="layui-form-item">
							<label class="layui-form-label" for="remark">摘要：</label>
							<div class="layui-input-block">
								<div class="content-wrap">
									{$vo.remark}
								</div>
							</div>
						</div>
					</div>
					<div class="bit-1">
						<div class="layui-form-item">
							<label class="layui-form-label" for="name">附件：</label>
							<div class="layui-input-block">
								{:W('FileUpload/view',array('mode'=>'add'))}
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</eq>
	<eq name="vo.doc_type" value="3">
		<div class="sub-frame gray">
			<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   >
				<div class="sub-frame gray">
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="doc_no">单据编号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.doc_no}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="end_date" >日期：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.input_date}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="account_id_payment">转出帐号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									<empty name="vo.income">
										{$vo.related_account_name}
										<else/>
										{$vo.account_name}
									</empty>
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="account_id_income">转入帐号：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									<empty name="vo.income">
										{$vo.account_name}
										<else/>
										{$vo.related_account_name}
									</empty>
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="money">金额：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									<empty name="vo.income">
										{$vo.payment}
										<else/>
										{$vo.income}
									</empty>
								</p>
							</div>
						</div>
					</div>
					<div class="bit-2">
						<div class="layui-form-item">
							<label class="layui-form-label" for="actor_user_name">经办人：</label>
							<div class="layui-input-block">
								<p class="layui-input-static">
									{$vo.actor_name}
								</p>
							</div>
						</div>
					</div>
					<div class="bit-1">
						<div class="layui-form-item">
							<label class="layui-form-label" for="name">附件：</label>
							<div class="layui-input-block">
								{:W('FileUpload/view',array('mode'=>$vo['add_file']))}
							</div>
						</div>
					</div>
				</div>
			</form>
		</div>
	</eq>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global', 'editor'], function() {
			var $ = layui.jquery;
			set_return_url();

		});
	</script>
</block>